package cz.muni.fi.pa165.bookingmanager.restclient;

import java.io.IOException;
import java.util.Properties;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 * URI Helper
 */
public class URIHelper {

    /*
     * Return url of server as String
     */
    public static String getURL() {
        Properties prop = new Properties();

        try {
            prop.load(URIHelper.class.getClassLoader().getResourceAsStream("urlConfig.properties"));
        } catch (IOException ex) {
            Logger.getLogger(URIHelper.class.getName()).log(Level.SEVERE, null, ex);
        }

        return prop.getProperty("url");
    }
}
